﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WorkSearch.aspx.cs" Inherits="CV_Projekt.FormWorkSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MenuContent" runat="server"> 
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:HyperLink ID="HyperLink2" runat="server" ForeColor="Blue" NavigateUrl="~/RegisterCV.aspx"> CV</asp:HyperLink>
    </p>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     
          <asp:ListView runat="server" 
              ID="ListView" 
              EnableTheming="True" 
              DataSourceID="ObjectDataSource" 
              OnItemCommand="ListView_ItemCommand" DataKeyNames="WorkAdvertisementId"  >
  <LayoutTemplate>
      <div style="font-family: Verdana, Arial, Helvetica, sans-serif;" id="itemPlaceholderContainer" runat="server">
          <span runat="server" id="itemPlaceholder"  />
      </div>
      <div style="text-align: center;background-color: #CCCCCC;font-family: Verdana, Arial, Helvetica, sans-serif;color: #000000;">
      </div>
  </LayoutTemplate>
         
          
              <EmptyDataTemplate>
                  <span>No data was returned.</span>
              </EmptyDataTemplate>
           
  <ItemTemplate>
      <span style="">
      <asp:Label ID="WorkTitleLabel" runat="server" Text='<%# Eval("WorkTitle") %>' ForeColor ="Red" />
      <br />
      Plats:
      <asp:Label ID="WorkLocationLabel" runat="server" Text='<%# Eval("WorkLocation") %>' />
          <br />
      Publicerad:
      <asp:Label ID="PublishedDateLabel" runat="server" Text='<%# Eval("PublishedDate","{0:dd-MM-yyyy}") %>'/>
      <br />
      <br /> 
            <asp:Button runat="server" Text="Läs mer>" Height="35px" Width="80 " BackColor="Aqua"/> 
      <br />
      <br />
      </span>
  </ItemTemplate>
             
              <SelectedItemTemplate>
                  <span style="background-color: #008A8C;font-weight: bold;color: #FFFFFF; ">
                 
                  WorkTitle:
                  <asp:Label ID="WorkTitleLabel" runat="server" Text='<%# Eval("WorkTitle") %>' />
                  <br />
                  WorkLocation:
                  <asp:Label ID="WorkLocationLabel" runat="server" Text='<%# Eval("WorkLocation") %>' />
                  <br /> 
                  PublishedDate:
                  <asp:Label ID="PublishedDateLabel" runat="server" Text='<%# Eval("PublishedDate") %>' />
                  <br />
                    
                  <br />
                  <br />
                  </span>
              </SelectedItemTemplate>
             
</asp:ListView>

          <asp:ObjectDataSource ID="ObjectDataSource" runat="server" SelectMethod="GetAllWorkAdvertisement" TypeName="DBModel.WorkAdvertisementDB"></asp:ObjectDataSource>

    </asp:Content>
